import request from '@/utils/request'

export default{
  getHospSetList(current, limit, searchObj) {
    return request({
      url: `/admin/hosp/hospitalSet/${current}/${limit}`,
      method: 'post',
      data: searchObj // 使用Json形式进行传递
    })
  },
  deleteHosSet(id) {
    return request({
      url: `/admin/hosp/hospitalSet/${id}`,
      method: 'delete'
    })
  },
  batchRemoveHospSet(idList) {
    return request({
      url: `/admin/hosp/hospitalSet/batchRemove`,
      method: 'delete',
      data: idList
    })
  },
  lockHospSet(id,status) {
    return request({
      url: `/admin/hosp/hospitalSet/${id}/${status}`,
      method: 'put'
    })
  },
  // 医院设置查询功能
  getHospSet(id) {
    return request({
      url: `/admin/hosp/hospitalSet/getHospital/${id}`,
      method: 'get',
    })
  },
  saveHospital(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/saveHospital`,
      method: 'post',
      data: hospitalSet
    })
  },
  updateHospSet(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/updateHospital`,
      method: 'post',
      data: hospitalSet
    })
  }
}
